package com.dk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dk.mapper.TCarMapper;
import com.dk.pojo.TCar;
import com.dk.pojo.TOrder;
import com.dk.mapper.TOrderMapper;
import com.dk.service.ITOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
@Service
public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> implements ITOrderService {

    @Autowired
    private TOrderMapper tOrderMapper;

    @Override
    public List<TOrder> selectList(QueryWrapper wrapper) {
        return tOrderMapper.selectList(wrapper);
    }

    @Override
    public Integer updateInfo(TOrder tOrder) {
        Integer integer = tOrderMapper.updateById(tOrder);
        return integer;
    }

    @Override
    public Integer deleInfo(Integer id, Integer status) {
        return tOrderMapper.updateBYIdele(id,status);
    }
}
